"use strict";
cc._RF.push(module, '82a7frfB/dE/6MH++0uW31M', 'AppDelegate');
// Script/AppDelegate.ts

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var GameModel_1 = require("./Model/GameModel");
var UserModel_1 = require("./Model/UserModel");
var WindowUtils_1 = require("./Tools/WindowUtils");
var AppDelegate = /** @class */ (function () {
    function AppDelegate() {
        this.userModel = null;
        this.gameModel = null;
    }
    AppDelegate.prototype.init = function () {
        WindowUtils_1.default.init();
        this.gameModel = new GameModel_1.default();
        this.gameModel.init();
        this.userModel = new UserModel_1.default();
        this.userModel.init();
        var manager = cc.director.getCollisionManager();
        manager.enabled = true;
        manager.enabledDebugDraw = true; // 碰撞检测范围
        // manager.enabledDrawBoundingBox = true; //碰撞组件的包围盒
        cc.director.getPhysicsManager().enabled = true;
    };
    AppDelegate = __decorate([
        ccclass
    ], AppDelegate);
    return AppDelegate;
}());
exports.default = new AppDelegate();

cc._RF.pop();